<include file="public@header"/>
<style type="text/css">
    .cardBox {
        width: 250px;
        box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
        text-align: center;
        float: left;
        margin-right: 10px;
        padding: 5px;
        padding-top: 15px;
    }

    .headerBox {
        color: #fff;
        padding: 10px;
        font-size: 15px;
        height: 100px;
    }

    .bodyBox {
        padding: 10px;
    }

    .bodyBox p {
        margin-left: 5px;
    }
</style>

</head>
<body>
<div class="wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a>生活费发放</a></li>
        <li><a href="{:url('life/add',array('id'=>$id))}">班组</a></li>
        <li><a href="{:url('life/addsup',array('id'=>$id))}">供货商</a></li>
    </ul>
    <volist name="all" id="c">
        <div class="cardBox" style="margin-bottom: 60px">
            <div class="headerBox" style="background-color: #4caf50;">
                <p>
                    班组/供应商名 : {$c.lName}
                </p>
                <p>
                    班组总支出 :{$c.all}
                </p>


            </div>
        </div>
    </volist>

    <form method="post" class="js-ajax-form margin-top-20">
        <table class="table table-hover table-bordered">
            <thead>
            <tr>
                <th>班组</th>
                <th>{:lang('ACTIONS')}</th>
            </tr>
            </thead>
            <tbody>
            <volist name="res" id="v">
                <tr>
                <td>{$v.lName}</td>
                <td>
                    <a class="btn btn-xs btn-primary js-ajax-submit"
                       href="{:url('life/look',array('lid'=>$v.lid,'eid'=>$id,'type'=>$type))}">查看详情</a>
                </td>
                </tr>
            </volist>

            </tbody>
        </table>

    </form>
</div>
<script src="__STATIC__/js/admin.js"></script>
</body>
</html>